#pragma once
#include "mapidefs.h"

class CMsgStore :
	public IMsgStore
{
public:
	///////////////////////////////////////////////////////////////////////////////
	// Interface virtual member functions
	//
	STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
	STDMETHODIMP_(ULONG) AddRef();
	STDMETHODIMP_(ULONG) Release();
	MAPI_IMAPIPROP_METHODS(IMPL);
	MAPI_IMSGSTORE_METHODS(IMPL);

	CMsgStore(LPMDB pPSTMsgStore);
	~CMsgStore();

private:
	ULONG m_cRef;
	LPMDB m_pObj;
};
